//切换卡槽类型事件修改备注信息
function changeCardTrough(cardTrough){
	$("#hidden_selectedCardTrough").attr("value",cardTrough);
}

//确认选择卡槽类型事件
function submitChooseCardTrough() {
	var selectedCardTrough = $("#hidden_selectedCardTrough").val();
	var isOpenCallsDisplay = $("#hidden_feeIllustrate").val();
	var hostName = $("#hidden_hostName").val();
	hostName = encodeURI(hostName);
	hostName = encodeURI(hostName);
	var cardId = $("#hidden_cardId").val();
	var productId = $("#productId").val();
	if(isOpenCallsDisplay == ""){
		isOpenCallsDisplay = true;
	}
	if(selectedCardTrough == "nanoCard"){
		if(hostName != "" && cardId != ""){
			window.location.href = "submitChooseCardTrough.jhtml?productId="+productId+"&selectedCardTrough=nanoCard&isOpenCallsDisplay="+ isOpenCallsDisplay +"&hostName="+ hostName +"&cardId="+ cardId +"";
		}
		window.location.href = "submitChooseCardTrough.jhtml?productId="+productId+"&selectedCardTrough=nanoCard&isOpenCallsDisplay="+ isOpenCallsDisplay +"";
	}
    if(selectedCardTrough == "commonCard") {
    	if(hostName != "" && cardId != ""){
			window.location.href = "submitChooseCardTrough.jhtml?productId="+productId+"&selectedCardTrough=nanoCard&isOpenCallsDisplay="+ isOpenCallsDisplay +"&hostName="+ hostName +"&cardId="+ cardId +"";
		}
		window.location.href = "submitChooseCardTrough.jhtml?productId="+productId+"&selectedCardTrough=commonCard&isOpenCallsDisplay="+ isOpenCallsDisplay +"";
	}
	//window.location.href = "submitChooseCardTrough.jhtml?selectedCardTrough=" + selectedCardTrough + "";
}